package com.zhao.controller;

import com.pingxx.capital.common.Response;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

@RestController
@RequestMapping("upload")
public class UploadController {

    @PostMapping("merchant")
    @ResponseBody
    public Response<Map<String, String>> upload(@RequestParam("file") MultipartFile file) {
        Map<String, String> data = new HashMap<>(10);
        data.put("fileId", UUID.randomUUID().toString());
        return Response.succ(data);
    }
}
